package com.i360day.redis.annotation;


import com.i360day.redis.emuns.MatchingType;

import java.lang.annotation.*;

@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface RedisExpireListener {

    Class<?>[] value();

    /**
     * <p> @Author liju.z <p>
     *
     * <p> @Description 匹配条件  <p>
     *
     * <p> @Date  8:48 <p>
     *
     * <p> @Param [] <p>
     *
     * <p> @return [] <p>
     **/
    MatchingType condition() default MatchingType.CONTAINS;

    /**
     * <p> @Author liju.z <p>
     *
     * <p> @Description 是否上锁操作，默认true <p>
     *
     * <p> @Date  15:48 <p>
     *
     * <p> @Param [] <p>
     *
     * <p> @return [] <p>
     **/
    boolean lock() default true;
}
